home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1996 June
/
EnigmA AMIGA RUN 08 (1996)(G.R. Edizioni)(IT)[!][issue 1996-06][EARSAN CD VII].iso
/
earcd
/
dtype
/
fontdt12.lha
/
AutoDocs
/
font_dtc.doc
Wrap
Text File
|
1996-05-06
|
3KB
|
65 lines
TABLE OF CONTENTS
font.datatype/font.datatype
font.datatype/font.datatype font.datatype/font.datatype
NAME
font.datatype -- data type for Amiga bitmap and outline fonts.
FUNCTION
The font data type, a sub-class of the picture.datatype, is used
to load (and display) Amiga bitmap and outline fonts. All available
sizes of a given font are loaded into memory and then rendered into
screen, taking user preferences into account.
By default this data type will render each font size in one line,
in ascending order. Whole characters set for the given font and size
will be rendered.
User preferences are stored in font.prefs file, located in either
PROGDIR:Prefs/DataTypes/ or ENV:DataTypes/ directory (searched in
that order). A preferences file is an ASCII file parsed with the
following ReadArgs() template:
STRINGS/M,CENTER=CENTRE/S,INV=INVERSE/S,FN=FONTNAME/S,
DPI/K,FG=FOREGROUND/K,BG=BACKGROUND/K
STRINGS are multiple texts that are to be rendered instead of the
default character set. Each string is rendered in one line.
CENTRE indicates that each line should be centered on screen.
INVERSE indicates foreground/background color inversion. Does not
work for color fonts.
FONTNAME indicates that for each font's size the name and size of
that font should be rendered before any user text.
DPI describes font's aspect ratio, in XDPI/A/N,YDPI/A/N format.
Default values for aspect ratio are DiskFont's defaults.
FOREGROUND describes foreground color for two-color fonts. The string
is parsed with R=RED/A/N,G=GREEN/A/N,B=BLUE/A/N template to extract
red, green and blue components for a given color. Default foreground
color is black. This option does not work for color fonts.
BACKGROUND describes background color for two-color fonts. The string
is parsed with R=RED/A/N,G=GREEN/A/N,B=BLUE/A/N template to extract
red, green and blue components for a given color. Default background
color is white. This option does not work for color fonts.
METHODS
OM_NEW -- Create a new picture object from a .font file and all
associated size files. The source must be a file.
NOTES
Since version 39.4 a font to be loaded does not need to be in
FONTS: path. The data type will temporarily extend FONTS: assign
to cover given font.
If bitmaps are created for an outline font, the data type will load
only those sizes, for which bitmaps exist. Otherwise all DiskFont
default sizes will be loaded.
For color fonts the color is set to that of biggest size.
BUGS
Loading outline fonts with multiple size requires 'a lot' of memory.
OpenDiskFont() uses a lot of stack and this causes problems with
small-stack clients like original IPrefs.
SEE ALSO
picture.datatype, diskfont.library, bullet.library.